from logging import exception
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import NoSuchElementException
import time
import os,random,traceback

from defclass import *
# print("序号:{:5}\t课程名:{:40}".format("1",2))
print("""
 ________     _____  ____  ____  _____   
|  __   _|   |_   _||_  _||_  _|/ ___ `. 
|_/  / /       | |    \ \  / / |_/___) | 
   .'.' _  _   | |     \ \/ /   .'____.' 
 _/ /__/ || |__' |     _|  |_  / /_____  
|________|`.____.'    |______| |_______| """)
print("欢迎使用 zjy2 挂机系统")
if __name__ == '__main__':
    zjy=zjy2()
    zjy.login_zjy2()
    if(zjy.login_start==True):
        zjy.get_course_list()
        #zjy.show_course_list()
        zjy.check_course()
        pass
    # wd.quit()
